package java_thinking.unit_5._5_7;

/**
 * @Description :
 * @author: cww
 * @DateTime: 2019-02-22 23:31
 */

class Mug {
    Mug(int marker) {
        System.out.println("Mug(" + marker + ")");
    }
    void f(int marker) {
        System.out.println("f(" + marker + ")");
    }
}

class Mugs {
    Mug c1 = new Mug(5);
    Mug c2;
    {
        c1 = new Mug(1);
        c2 = new Mug(2);
        System.out.println("c1 & c2 initialized");
    }
    Mugs() {
        System.out.println("Mugs()");
    }
    public static void main(String[] args) {
        System.out.println("Inside maindemo()");
        Mugs x = new Mugs();
    }
}
